package edu.sctu.wangxiaoqiang.day20150607;

/**
 * Created by user25 on 2015/6/7.
 */
public class BaoGuoDeth {

    private String weijin = "易燃易爆,管制刀具,有毒物质,枪械";

    private PeopleAppbean peopleappbean;

    public BaoGuoDeth(PeopleAppbean peopleappbean){
        this.peopleappbean = peopleappbean;
    }


    /**
     * ������
     *
     * @return
     */
    public boolean chaBaoGuo(){
        boolean is_weijin = false;
        if(peopleappbean.isIs_baoguo()){
            if(weijin.contains(peopleappbean.getBaoguoname())){
                is_weijin = true;
            }
        }else{
            is_weijin = false;
        }
        return is_weijin;
    }


    /**
     * ���ˮ
     *
     * @return
     */
    public boolean chaWater(){
        boolean is_weijin = false;
        if(peopleappbean.isIs_water()){
            if(weijin.contains(peopleappbean.getWatername())){
                is_weijin = true;
            }
        }else{
            is_weijin = false;
        }

        return is_weijin;
    }
}
